<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>出具《福建省动物、动物产品准调证》申请单</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index?menuId=1">首页</a>
                </li>
                <li>
                    <a>审批</a>
                </li>
                <li class="active">
                    <strong>出具《福建省动物、动物产品准调证》申请单</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="search_ApplicationDate" placeholder="申请日期"
                                           name="search_ApplicationDate" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <select id="search_types" autocomplete="off" class="form-control">
                                        <option value="">--审批状态--</option>
                                        <option value="0" selected>待审</option>
                                        <option value="1">驳回</option>
                                        <option value="2">待出证</option>
                                        <option value="3">已出证</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search"
                                        onclick="doSearch()"><i
                                        class="fa fa-search"></i>&nbsp;搜索
                                </button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh"
                                        onclick="doRest()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置
                                </button>
                            </div>
                        </div>

                        <div class="jqGrid_wrapper">
<!--                            <div class="btn-group-sm" id="toolbar" role="group">-->
<!--                                <a class="btn btn-success" name="AddNew" id="AddNew" data-toggle="modal"-->
<!--                                   data-target="#myModalAdd" onclick="addRecord();">-->
<!--                                    <i class="fa fa-plus"></i> 新增-->
<!--                                </a>-->
<!--                            </div>-->

                            <table class="table table-striped table-bordered table-hover " id="tableList">
                            </table>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">出具《福建省动物、动物产品准调证》申请单信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <div class="row">
<!--                                    <label class="col-lg-2 control-label">是否已阅读温馨提示内容</label>-->
<!--                                    <div class="col-lg-4">-->
<!--                                        <div class="form-group">-->
<!--                                            <select id='text_readActivity' name='text_readActivity' class="form-control"-->
<!--                                                    placeholder="是否已阅读温馨提示内容">-->
<!--                                                <option value="是" selected>是</option>-->
<!--                                                <option value="否">否</option>-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                    </div>-->
                                    <label class="col-lg-2 control-label">申请日期</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" readonly id="text_applicationDate" name="text_applicationDate"
                                                   placeholder="申请日期" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">申请单位(或个人）名称</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" readonly id="text_applicationName" name="text_applicationName"
                                                   placeholder="申请单位(或个人）名称" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">申请方企业代码(个人身份证号码)</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_enterpriseNo" name="text_enterpriseNo"
                                                   placeholder="企业代码(个人身份证号码)" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">联系电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_phone" name="text_phone" placeholder="联系电话"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">申请方营业执照或身份证照片</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <img id="showImage" src="" class="img-responsive">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">发货单位</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_company" name="text_company" placeholder="发货单位"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">发货地址</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_fullAddress" name="text_company" placeholder="发货地址"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">接货单位</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_receivingUnit" name="text_receivingUnit"
                                                   placeholder="接货单位" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">销售去向</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_fullSaleAddress" name="text_company" placeholder="销售去向"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">动物、动物产品类别</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_animalType" name="text_animalType" placeholder="动物、动物产品类别"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">调运数量(头、公斤、羽)</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="number" id="text_number" name="text_number"
                                                   placeholder="调运数量(头、公斤、羽)" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">运输方式</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_transport" name="text_transport"
                                                   placeholder="运输方式" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">承运人</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_carry" name="text_carry" placeholder="承运人"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">承运人电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_carryPhone" name="text_carryPhone"
                                                   placeholder="承运人电话" autocomplete="off" class="form-control">
                                        </div>
                                    </div>

                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">车号</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_carNo" name="text_carNo" placeholder="车号"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">拟调入时间</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_transferTime" name="text_transferTime"
                                                   placeholder="拟调入时间" autocomplete="off" class="form-control">
                                        </div>
                                    </div>

                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">用途</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_purpose" name="text_purpose"
                                                   placeholder="用途" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">运输路经省市县名</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="text_route" name="text_route" placeholder="运输路经省市县名"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">拟调入动物或产品的非洲猪瘟检测报告</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <img id="showImage2" src=""
                                                 style="display: none" class="img-responsive">
                                        </div>
                                    </div>

                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">备注</label>
                                    <div class="col-lg-10">
                                        <div class="form-group">
                                            <input type="text" id="text_remark" name="text_remark" placeholder="备注"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>

                                <div class="row" id="Aproval" hidden>
                                    <label class="col-lg-2 control-label">审批</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id="types" autocomplete="off" class="form-control">
                                                <option value="2" selected>通过</option>
                                                <option value="1">驳回</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">审核意见：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id="opinion" autocomplete="off" class="form-control">
                                                <option value=""></option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="Certificate" hidden>
                                    <label class="col-lg-2 control-label">出证人签字</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="witness" name="text_witness"
                                                   placeholder="出证人签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">畜主签字</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="livestock" name="text_witness"
                                                   placeholder="畜主签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;审 批
                    </button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!-- 详情模态框 -->
    <div class="modal inmodal" id="myModalAdd1" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">出具《福建省动物、动物产品准调证》申请单信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform1">
                            <div class="panel-body form-horizontal">
                                <div class="row">
                                    <!--                                    <label class="col-lg-2 control-label">是否已阅读温馨提示内容</label>-->
                                    <!--                                    <div class="col-lg-4">-->
                                    <!--                                        <div class="form-group">-->
                                    <!--                                            <select id='text_readActivity' name='text_readActivity' class="form-control"-->
                                    <!--                                                    placeholder="是否已阅读温馨提示内容">-->
                                    <!--                                                <option value="是" selected>是</option>-->
                                    <!--                                                <option value="否">否</option>-->
                                    <!--                                            </select>-->
                                    <!--                                        </div>-->
                                    <!--                                    </div>-->
                                    <label class="col-lg-2 control-label">申请日期</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" readonly id="applicationDate" name="text_applicationDate"
                                                   placeholder="申请日期" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">申请单位(或个人）名称</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" readonly id="applicationName" name="text_applicationName"
                                                   placeholder="申请单位(或个人）名称" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">申请方企业代码(个人身份证号码)</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="enterpriseNo" name="text_enterpriseNo"
                                                   placeholder="企业代码(个人身份证号码)" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">联系电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="phone" name="text_phone" placeholder="联系电话"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">申请方营业执照或身份证照片</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <img id="Image" src="" class="img-responsive">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">发货单位</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="company" name="text_company" placeholder="发货单位"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">发货地址</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="fullAddress" name="text_company" placeholder="发货地址"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">接货单位</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="receivingUnit" name="text_receivingUnit"
                                                   placeholder="接货单位" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">销售去向</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="fullSaleAddress" name="text_company" placeholder="销售去向"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">动物、动物产品类别</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="animalType" name="text_animalType" placeholder="动物、动物产品类别"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">调运数量(头、公斤、羽)</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="number" id="number" name="text_number"
                                                   placeholder="调运数量(头、公斤、羽)" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">运输方式</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="transport" name="text_transport"
                                                   placeholder="运输方式" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">承运人</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="carry" name="text_carry" placeholder="承运人"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">承运人电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="carryPhone" name="text_carryPhone"
                                                   placeholder="承运人电话" autocomplete="off" class="form-control">
                                        </div>
                                    </div>

                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">车号</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="carNo" name="text_carNo" placeholder="车号"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">拟调入时间</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="transferTime" name="text_transferTime"
                                                   placeholder="拟调入时间" autocomplete="off" class="form-control">
                                        </div>
                                    </div>

                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">用途</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="purpose" name="text_purpose"
                                                   placeholder="用途" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">运输路经省市县名</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="route" name="text_route" placeholder="运输路经省市县名"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">拟调入动物或产品的非洲猪瘟检测报告</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <img id="Image2" src="" class="img-responsive">
                                        </div>
                                    </div>

                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">备注</label>
                                    <div class="col-lg-10">
                                        <div class="form-group">
                                            <input readonly type="text" id="remark" name="text_remark" placeholder="备注"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">审批人</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="aprovalUser" name="text_drug" placeholder="审批人"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">审批时间</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="aprovalTime" name="text_drug" placeholder="审批时间"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">审批状态</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="aprovalType" name="text_drug" placeholder="审批状态"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">审核意见：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="aprovalOpinion" name="text_drug" placeholder="审核意见"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">出证人</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="certificateUser" name="text_drug" placeholder="出证人"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">出证时间</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="certificateTime" name="text_drug" placeholder="出证时间"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">出证人签字</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="certificateUserName" name="text_witness"
                                                   placeholder="出证人签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">畜主签字：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="livestockName" name="text_witness"
                                                   placeholder="畜主签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
<!--                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i-->
<!--                            class="fa fa-save"></i>&nbsp;审 批-->
<!--                    </button>-->
                    <button type="button" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/form/animalAproval.js}"></script>
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
    <!-- 文件上传 -->
    <script th:src="@{/js/Scripts/ajaxfileupload.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    AnimalAproval.init();
</script>
</html>
